<include path="header" /> 
	<div class="m-title">
    	<ul>
        	<li><a href="/work/index">工作</a></li>
            <li><a href="/work/todo">待办</a></li>
            <li><a href="/work/work" class="select">任务</a></li>
            <li class="right"><a href="/work/add">+ 工作 | 待办</a></li>
            <li></li>
        </ul>
    </div>    
     <div class="box">
    	<ul class="tasklist todo">
        	<li>未完成的任务</li>
            <? if(!empty($unfinished) && count($unfinished) > 0){ foreach($unfinished as $unli){ ?>
            <li>                      
            <div class="left"><a href="/work/view?id=<?=$unli['work_id']?>"><?=$unli['subject']?></a></div>
            <div class="right"><input class="workpercent" value="<?=$unli['finish_percent']?>" name="finish_percent" onBlur="work_form_<?=$unli['work_id']?>.submit();" />%&nbsp;&nbsp;&nbsp;</div>
            <div class="middiv"><?=$unli['end_date']?></div>
            </li>
        	<? }} ?>
        </ul>
    </div> 
    <div class="box">
    	<ul class="tasklist todo">
        	<li>已完成的任务</li>
            <? if(!empty($finished) && count($finished) > 0){ foreach($finished as $li){ ?>
            <li>
            	<div class="left"><a href="/work/view?id=<?=$unli['work_id']?>"><?=$li['subject']?></a></div>
                <div class="right">&nbsp; </div>
                <div class="middiv"> &nbsp;</div>     
            </li>
        	<? }} ?>
        </ul>
    </div>
<include path="footer" /> 